package com.itheima.sc.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
public class PageResult<T> implements Serializable {
    private Integer pageNum;   //当前页码
    private Integer pageSize;  //每页条数
    private Integer total;  //总记录数
    private Integer totalPage;   //总页数
    private List<T> list;   //列表
    private Map map;

    public PageResult() {
    }
    public PageResult(Integer pageNum, Integer pageSize, Integer total, Integer totalPage, List<T> list) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.totalPage = totalPage;
        this.list = list;
    }
}
